package com.ten.mall.mapper;

import com.ten.mall.vo.Privilege;
import com.ten.mall.vo.PrivilegeExample;
import com.ten.mall.vo.PrivilegeUser;

import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface PrivilegeMapper {
    int countByExample(PrivilegeExample example);

    int deleteByExample(PrivilegeExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Privilege record);

    int insertSelective(Privilege record);

    List<Privilege> selectByExample(PrivilegeExample example);

    Privilege selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Privilege record, @Param("example") PrivilegeExample example);

    int updateByExample(@Param("record") Privilege record, @Param("example") PrivilegeExample example);

    int updateByPrimaryKeySelective(Privilege record);

    int updateByPrimaryKey(Privilege record);
    
    List<PrivilegeUser> selectMyPrilige(String id);
    
    List<Privilege> selectMyRole(Integer roleId);
    
    
    int deletMyRole(Integer roleId);
}